﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using GeneralClasses;


namespace Algorithm
{
    class Program
    {
        static void Main(string[] args)
        {

             //Meant to test algorithm, but attempting to run just outputs problems with the database. 
             //* The error was something relating to the connection string. I can replicate it at tomorrow's 
             //* meeting (11/10/10) and we can see what can be done about it.
            
            DateTime startTime = DateTime.Now;

            AlgorithmHelper temp_data = new AlgorithmHelper();
            DateTime today = DateTime.Today;
            ScheduleData data = new ScheduleData();
            
            

            data = temp_data.CreateScheduleData(today, 7);
            
           Schedule_Population population = new Schedule_Population(data);
           List <Schedule> schedule_list = population.doGenetic(10000, 1);
           //List<Schedule> schedule_list = new List<Schedule>();
           //schedule_list = population.doRandom(10);
           DateTime endTime = DateTime.Now;
           TimeSpan span = endTime - startTime;

           //UTIL.sayDebug(span.Duration);
           Console.WriteLine(span);

        }
    }
}
